﻿using System;
using System.Diagnostics;
using System.Reflection;
using System.Windows.Forms;

namespace nToDo
{
    public partial class AboutBox : Form
    {
        public AboutBox()
        {
            InitializeComponent();
        }

        private void AboutBox_Load(object sender, EventArgs e)
        {
            AssemblyFileVersionAttribute ver = (AssemblyFileVersionAttribute) Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyFileVersionAttribute), true)[0];
            this.versionInfo.Text = string.Format("Assembly Version :{0}", ver.Version.ToString());
        }

        private void okButton_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void homePage_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Process.Start("http://ntodo.codeplex.com");
        }
    }
}
